﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Waaahsabi.Controls.DWM" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	mc:Ignorable="d" 
	xmlns:ic="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions" 
	xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
	xmlns:il="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions" 
	xmlns:System="clr-namespace:System;assembly=mscorlib">

	<Style x:Key="WindowButtonStyleMiddle" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid d:DesignWidth="48" d:DesignHeight="19.75">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.68"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameLightBlue}"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameDarkBlue}"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.64"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusY)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.922"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="outerEdge" BorderThickness="1,0,1,1" BorderBrush="#BFFFFFFF" Margin="0,0,0,-1" d:LayoutOverrides="Height">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="#FFD92200"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="background" BorderThickness="1,0,1,1" BorderBrush="Black" d:LayoutOverrides="Height">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="#FFD5D5D5"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" d:LayoutOverrides="Height" Visibility="Collapsed">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957">
									<GradientStop Color="{StaticResource TheGameDarkBlue}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameLightBlue}" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Transparent" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="Transparent" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="glass" Background="{StaticResource DefaultGlassGradient}" BorderThickness="1,0,1,1" Margin="1,0,1,1" BorderBrush="#7FFFFFFF"/>
						<Path x:Name="icon_restore" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="#FF000000" Fill="{StaticResource WindowButtonIconGradient}" Data="F1 M 228.333,209.333L 309.333,209.333L 309.333,270.833L 228.333,270.833L 228.333,209.333 Z M 242.833,225.333L 242.833,256.333L 295.333,256.333L 295.333,225.333L 242.833,225.333 Z " Height="10" HorizontalAlignment="Center" VerticalAlignment="Center" Width="13" UseLayoutRounding="True" Margin="4,0,0,4"/>
						<Path x:Name="icon" Stretch="Fill" StrokeThickness="0.5" StrokeLineJoin="Round" Stroke="#FF000000" Data="F1 M 228.333,209.333L 309.333,209.333L 309.333,270.833L 228.333,270.833L 228.333,209.333 Z M 242.833,225.333L 242.833,256.333L 295.333,256.333L 295.333,225.333L 242.833,225.333 Z " UseLayoutRounding="True" VerticalAlignment="Center" HorizontalAlignment="Center" Width="13" Height="10" Fill="{StaticResource WindowButtonIconGradient}"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="WindowButtonStyleLeft" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid d:DesignWidth="48" d:DesignHeight="19.75">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.68"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameLightBlue}"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameDarkBlue}"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.64"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusY)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.922"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="outerEdge" BorderThickness="1,0,0,1" BorderBrush="#BFFFFFFF" Margin="-1,0,0,-1" d:LayoutOverrides="Height" CornerRadius="0,0,0,4">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="#FFD92200"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="background" BorderThickness="1,0,0,1" BorderBrush="Black" d:LayoutOverrides="Height" CornerRadius="0,0,0,3">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="#FFD5D5D5"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" d:LayoutOverrides="Height" CornerRadius="0,0,0,3" Visibility="Collapsed">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="{StaticResource TheGameLightBlue}" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957">
									<GradientStop Color="{StaticResource TheGameDarkBlue}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameLightBlue}" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Transparent" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="Transparent" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="glass" Background="{StaticResource DefaultGlassGradient}" BorderThickness="1,0,1,1" Margin="1,0,0,1" BorderBrush="#7FFFFFFF" CornerRadius="0,0,0,2"/>
						<Rectangle Fill="{StaticResource WindowButtonIconGradient}" Stroke="Black" Width="13" Height="5" Margin="0,5,0,0" StrokeThickness="0.5"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="WindowButtonStyleRight" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid d:DesignWidth="48" d:DesignHeight="19.75">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.68"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="Red"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameHighlighterYellow}"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameBrightRed}"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA01900"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.64"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusY)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.922"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="outerEdge" CornerRadius="0,0,4,0" BorderThickness="0,0,1,1" BorderBrush="#7FFFFFFF" d:LayoutOverrides="Height" Margin="0,0,-1,-1">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="#FFD92200"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="background" CornerRadius="0,0,3,0" BorderThickness="0,0,1,1" BorderBrush="Black" d:LayoutOverrides="Height">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.577" RadiusY="0.831">
									<GradientStop Color="#FFD92200"/>
									<GradientStop Color="#FF550D00" Offset="1"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" CornerRadius="0,0,3,0" d:LayoutOverrides="Height" Visibility="Collapsed">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="Red" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957">
									<GradientStop Color="Red" Offset="1"/>
									<GradientStop Color="#FFFFC100" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Transparent" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="Transparent" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Path x:Name="X" Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" Fill="{StaticResource WindowButtonIconGradient}" Data="F1 M 194.44,164.951L 205.96,164.951L 212.17,173.425L 217.96,164.951L 229.48,164.951L 218.897,178.29L 230.44,192.489L 218.92,192.489L 211.96,183.645L 205,192.489L 193.48,192.489L 205.187,178.14L 194.44,164.951 Z " Height="11" HorizontalAlignment="Center" VerticalAlignment="Center" Width="13" UseLayoutRounding="True" StrokeThickness="0.5" Margin="0,0,0,1"/>
						<Border x:Name="glass" Background="{StaticResource DefaultGlassGradient}" CornerRadius="0,0,2,0" BorderThickness="1,0,1,1" Margin="0,0,1,1" BorderBrush="#7FFFFFFF"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="DefaultButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00.1000000"/>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF5F5F5F"/>
										</ColorAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="outerEdge" BorderThickness="1" BorderBrush="#7FFFFFFF" Margin="-1" d:LayoutOverrides="Height" CornerRadius="3">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.936" RadiusY="1.349">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="#FFD92200"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="background" BorderThickness="1" BorderBrush="Black" d:LayoutOverrides="Height" Margin="0" CornerRadius="2">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.6" RadiusY="0.865">
									<GradientStop Color="#FF3E3E3E" Offset="1"/>
									<GradientStop Color="#FFD7D7D7"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" d:LayoutOverrides="Height" Margin="0" Visibility="Collapsed">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957" RadiusX="0.56">
									<GradientStop Color="{StaticResource TheGameDarkBlue}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameLightBlue}" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#3FFFFFFF" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="#3FFFFFFF" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="glass" BorderThickness="1" Margin="1" BorderBrush="#7FFFFFFF" CornerRadius="1" Background="{StaticResource DefaultGlassGradient}"/>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="False" Margin="5,3"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
		<Setter Property="FontWeight" Value="Normal"/>
	</Style>
	<Style TargetType="local:TheGameWindow">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:TheGameWindow">
					<!-- <Border x:Name="bdrBackground" CornerRadius="5,5,2,2" d:DesignWidth="451" d:DesignHeight="316" MinWidth="250" MinHeight="100">
						<Border.Resources>
							<Storyboard x:Name="MinimizeAnimation">
								<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="bdrBackground" Storyboard.TargetProperty="(UIElement.Visibility)">
									<DiscreteObjectKeyFrame KeyTime="00:00:00">
										<DiscreteObjectKeyFrame.Value>
											<Visibility>Visible</Visibility>
										</DiscreteObjectKeyFrame.Value>
									</DiscreteObjectKeyFrame>
									<DiscreteObjectKeyFrame KeyTime="00:00:01">
										<DiscreteObjectKeyFrame.Value>
											<Visibility>Collapsed</Visibility>
										</DiscreteObjectKeyFrame.Value>
									</DiscreteObjectKeyFrame>
								</ObjectAnimationUsingKeyFrames>
							</Storyboard>
						</Border.Resources>-->
						<Grid x:Name="shadowGrid" d:DesignWidth="352" d:DesignHeight="205">
							<Grid.RowDefinitions>
								<RowDefinition Height="25"/>
								<RowDefinition/>
								<RowDefinition Height="8"/>
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="8"/>
								<ColumnDefinition/>
								<ColumnDefinition Width="8"/>
							</Grid.ColumnDefinitions>
							<Border Grid.ColumnSpan="3" Grid.RowSpan="3" BorderBrush="Black" BorderThickness="10" CornerRadius="10,10,1,1" Margin="1" Visibility="Collapsed"/>
							<Border x:Name="bdrTopLeft" CornerRadius="8,0,0,0" Background="White" BorderThickness="1.5,1.5,0,0" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrTopMiddle" Cursor="Arrow" Grid.Column="1" Background="White" BorderThickness="0,1.5,0,0" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrTopRight" Grid.Column="2" CornerRadius="0,8,0,0" Background="White" BorderThickness="0,1.5,1.5,0" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrMiddleLeft" Cursor="SizeWE" Grid.Row="1" Background="Black" BorderThickness="1.5,0,0,0" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrMiddleRight" Grid.Row="1" Cursor="SizeWE" Grid.Column="2" Background="Black" BorderThickness="0,0,1.5,0" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrBottomLeft" Grid.Row="2" CornerRadius="0,0,0,2" Background="Black" BorderThickness="1.5,0,0,1.5" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrBottomMiddle" Grid.Column="1" Cursor="SizeNS" Grid.Row="2" Background="Black" BorderThickness="0,0,0,1.5" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border x:Name="bdrBottomRight" Grid.Column="2" Grid.Row="2" CornerRadius="0,0,2,0" Background="Black" BorderThickness="0,0,1.5,1.5" BorderBrush="{TemplateBinding BorderBrush}"/>
							<Border BorderBrush="White" BorderThickness="1" CornerRadius="8,8,3,3" Grid.RowSpan="3" Grid.ColumnSpan="3" Margin="1" IsHitTestVisible="False" Background="{StaticResource DefaultWindowColor}" Opacity="0.75"/>
							<Border BorderBrush="Black" BorderThickness="1" CornerRadius="8,8,3,3" Grid.RowSpan="3" Grid.ColumnSpan="3" Margin="1" IsHitTestVisible="False" Background="{StaticResource GlassOpacityGradient}" Opacity="0.3"/>
							<Border x:Name="bdrCenter" Grid.Column="1" Grid.Row="1" Background="{TemplateBinding Background}">
								<ContentPresenter/>
							</Border>
							<StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Column="1" Orientation="Horizontal" Margin="0,2,0,0" UseLayoutRounding="False">
								<!-- Style="{StaticResource WindowButtonStyle}" -->
								<Button x:Name="btnMinimize" Style="{StaticResource WindowButtonStyleLeft}" Width="32" Content="0" Height="20" Margin="0" FontFamily="Webdings" FontSize="13.333" FontWeight="Bold" Foreground="White" Background="#FF0062FF"/>
								<!-- Style="{StaticResource WindowButtonStyle}" -->
								<Button x:Name="btnMaximize" Style="{StaticResource WindowButtonStyleMiddle}" Width="32" Content="1" Height="20" Margin="0" FontFamily="Webdings" FontSize="13.333" FontWeight="Bold" Foreground="White" Background="#FF0062FF"/>
								<!--  Style="{StaticResource WindowButtonStyle}" -->
								<Button x:Name="btnClose" Style="{StaticResource WindowButtonStyleRight}" Width="48" Content="r" Height="20" Margin="0,0,2,0" FontFamily="Webdings" FontSize="13.333" FontWeight="Bold" Foreground="{x:Null}" Background="{x:Null}" BorderBrush="{x:Null}"/>
							</StackPanel>
							<TextBlock x:Name="title" VerticalAlignment="Center" Text="{TemplateBinding WindowTitle}" TextWrapping="Wrap" d:LayoutOverrides="Width" Grid.Column="1" HorizontalAlignment="Left" IsHitTestVisible="False" Foreground="Black" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
						</Grid>
					<!--</Border>-->
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="WindowTitle" Value="Some window"/>
		<Setter Property="Content" Value=""/>
		<Setter Property="BorderBrush" Value="Black"/>
	</Style>

	<Style x:Key="TaskBarMainButton" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid Width="48" Height="48" UseLayoutRounding="True">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFF10000"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.44"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFFF8600"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.OpacityMask).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#3F000000"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Ellipse>
							<Ellipse.Stroke>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Black" Offset="0"/>
									<GradientStop Color="White" Offset="1"/>
								</LinearGradientBrush>
							</Ellipse.Stroke>
							<Ellipse.Fill>
								<RadialGradientBrush GradientOrigin="0.5,0.808" RadiusX="0.507" RadiusY="0.571" Center="0.501,0.447">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="White"/>
								</RadialGradientBrush>
							</Ellipse.Fill>
						</Ellipse>
						<Ellipse x:Name="highlighter" StrokeThickness="0" Visibility="Collapsed">
							<Ellipse.Effect>
								<BlurEffect Radius="10"/>
							</Ellipse.Effect>
							<Ellipse.Fill>
								<RadialGradientBrush RadiusX="0.51" RadiusY="1.896">
									<GradientStop Color="Black" Offset="1"/>
									<GradientStop Color="Red" Offset="0.013"/>
								</RadialGradientBrush>
							</Ellipse.Fill>
						</Ellipse>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}">
							<ContentPresenter.Effect>
								<DropShadowEffect ShadowDepth="1" Direction="275" BlurRadius="2" Opacity="0.75"/>
							</ContentPresenter.Effect>
						</ContentPresenter>
						<Path x:Name="path" Stretch="Fill" StrokeLineJoin="Round" Data="M 416,256C 433.673,256 448,270.327 448,288C 448,289.848 447.843,291.659 447.543,293.421C 439.075,290.037 428.162,288 416.25,288C 404.118,288 393.021,290.113 384.49,293.611C 384.168,291.789 384,289.914 384,288C 384,270.327 398.327,256 416,256 Z " Height="24.233" HorizontalAlignment="Center" Margin="0,0,0,20.5" VerticalAlignment="Bottom" Width="41.836" UseLayoutRounding="False">
							<Path.Fill>
								<RadialGradientBrush Center="0.501,0.866" GradientOrigin="0.501,0.866" RadiusY="0.868" RadiusX="0.544">
									<GradientStop Color="Transparent" Offset="0.241"/>
									<GradientStop Color="White" Offset="1"/>
								</RadialGradientBrush>
							</Path.Fill>
							<Path.OpacityMask>
								<LinearGradientBrush EndPoint="0.49,1.168" StartPoint="0.5,0">
									<GradientStop Offset="1"/>
									<GradientStop Color="White"/>
								</LinearGradientBrush>
							</Path.OpacityMask>
						</Path>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
	</Style>
			<Style TargetType="local:Taskbar">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="local:Taskbar">
						<Grid d:DesignHeight="561" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
							<VisualStateManager.CustomVisualStateManager>
								<ic:ExtendedVisualStateManager/>
							</VisualStateManager.CustomVisualStateManager>
							<!--<VisualStateManager.CustomVisualStateManager>
								<ei:ExtendedVisualStateManager/>
							</VisualStateManager.CustomVisualStateManager>-->
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="Default" ic:ExtendedVisualStateManager.UseFluidLayout="True"> <!--ei:ExtendedVisualStateManager.UseFluidLayout="True"-->
									<VisualStateGroup.Transitions>
										<VisualTransition GeneratedDuration="0">
											<VisualTransition.GeneratedEasingFunction>
												<QuarticEase EasingMode="EaseInOut"/>
											</VisualTransition.GeneratedEasingFunction>
										</VisualTransition>
									</VisualStateGroup.Transitions>
									<VisualState x:Name="StartMenuOn">
										<Storyboard>
											<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(FrameworkElement.Margin)" Storyboard.TargetName="grdStartMenu">
												<DiscreteObjectKeyFrame KeyTime="0">
													<DiscreteObjectKeyFrame.Value>
														<Thickness>64,10,0,0</Thickness>
													</DiscreteObjectKeyFrame.Value>
												</DiscreteObjectKeyFrame>
											</ObjectAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Idle"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Grid x:Name="grdStartMenu" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-195,10,0,0">
								<local:StartMenu x:Name="startMenu" MinWidth="250" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250" ClientIP="{TemplateBinding ClientIP}"/>
							</Grid>
							<Border
								BorderBrush="{TemplateBinding BorderBrush}"
								CornerRadius="0,10,0,0" HorizontalAlignment="Left" MinWidth="64" VerticalAlignment="Bottom" Width="64"/>
							<Border BorderBrush="#7FFFFFFF" BorderThickness="0.75" CornerRadius="0,5,0,0" Width="64" HorizontalAlignment="Left">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF5A5A5A" Offset="0.5"/>
										<GradientStop Color="#FF3C3C3C" Offset="0"/>
										<GradientStop Color="#FF3C3C3C" Offset="1"/>
									</LinearGradientBrush>
								</Border.Background>
							</Border>
							<Grid x:Name="statusArea" VerticalAlignment="Bottom" MaxWidth="64" UseLayoutRounding="False" MinHeight="5" HorizontalAlignment="Left" MinWidth="64">
								<Border BorderBrush="{StaticResource WindowButtonIconGradient}" BorderThickness="0.5,0.5,0.5,0" CornerRadius="3,3,0,0" Margin="3,0">
									<Border.Background>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#3FB0B0B0" Offset="1"/>
											<GradientStop Color="#3FFFFFFF"/>
										</LinearGradientBrush>

									</Border.Background>
									<ItemsControl x:Name="itmStatusItems" VerticalAlignment="Bottom" Margin="2,2,2,0" ItemsSource="{TemplateBinding StatusItems}"/>
								</Border>
							</Grid>
							<StackPanel x:Name="stkButtonList" Margin="0,5,0,0" HorizontalAlignment="Left">
								<Button x:Name="btnMain" Style="{StaticResource TaskBarMainButton}" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top" Width="48" Margin="8,0,8,32" Padding="5">
									<!-- -->
									<Path Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" Fill="#FF560000" Data="M 339.882,53.4904L 362.51,76.1178L 338.751,99.8768C 356.416,126.541 356.416,161.459 338.751,188.123L 362.51,211.882L 339.882,234.51L 316.123,210.751C 289.459,228.416 254.541,228.416 227.877,210.751L 204.118,234.51L 181.49,211.882L 205.249,188.123C 187.583,161.459 187.583,126.541 205.249,99.8767L 181.49,76.1178L 204.118,53.4904L 227.877,77.2494C 254.541,59.5836 289.459,59.5836 316.123,77.2494L 339.882,53.4904 Z M 294.627,144L 315.323,164.696C 321.559,151.644 321.559,136.357 315.323,123.304L 294.627,144 Z M 272,166.627L 251.304,187.324C 264.356,193.559 279.643,193.559 292.696,187.324L 272,166.627 Z M 249.373,144L 228.676,123.304C 222.441,136.357 222.441,151.644 228.676,164.696L 249.373,144 Z M 272,121.373L 292.696,100.677C 279.643,94.4413 264.356,94.4413 251.304,100.677L 272,121.373 Z " StrokeThickness="0" Height="24" Margin="5" Width="24" UseLayoutRounding="False"/>
								</Button>
							</StackPanel>
						</Grid>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Setter Property="ClientIP" Value="192.168.142.104"/>
		</Style>
<!--
	<Style TargetType="local:Taskbar">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:Taskbar">
					<Grid d:DesignHeight="561" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
						<VisualStateManager.CustomVisualStateManager>
							<ic:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="Default" ic:ExtendedVisualStateManager.UseFluidLayout="True">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="0:0:1">
										<VisualTransition.GeneratedEasingFunction>
											<BackEase EasingMode="EaseOut"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="StartMenuOn">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grdStartMenu" Storyboard.TargetProperty="(Canvas.Left)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<System:Double>64</System:Double>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grdStartMenu" Storyboard.TargetProperty="(FrameworkElement.Width)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<System:Double>250</System:Double>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Idle"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border
                			BorderBrush="{TemplateBinding BorderBrush}"
                			CornerRadius="0,10,0,0" HorizontalAlignment="Left" MinWidth="64" VerticalAlignment="Bottom" Width="64"/>
						<Border BorderBrush="#7FFFFFFF" BorderThickness="0.75" CornerRadius="0,5,0,0" Width="64" HorizontalAlignment="Left">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF5A5A5A" Offset="0.5"/>
									<GradientStop Color="#FF3C3C3C" Offset="0"/>
									<GradientStop Color="#FF3C3C3C" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
						</Border>
						<Grid x:Name="statusArea" Height="60" Width="60" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="2,0,0,0">
							<Border BorderBrush="{StaticResource WindowButtonIconGradient}" BorderThickness="0.5,0.5,0.5,0" CornerRadius="3,3,0,0" Margin="3,0">
								<Border.Background>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#3FB0B0B0" Offset="1"/>
										<GradientStop Color="#3FFFFFFF"/>
									</LinearGradientBrush>

								</Border.Background>
							</Border>
							<ItemsControl Margin="3,1"/>
						</Grid>
						<Grid x:Name="grdStartMenu" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="64,10,0,0" Width="0">
							<local:StartMenu x:Name="startMenu" MinWidth="250" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250"/>
						</Grid>
						<StackPanel x:Name="stkButtonList" Margin="0,5,0,0" HorizontalAlignment="Left">
							<Button x:Name="btnMain" Style="{StaticResource TaskBarMainButton}" Height="48" HorizontalAlignment="Left" VerticalAlignment="Top" Width="48" Margin="8,0,8,32" Padding="5">
								<Path Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF000000" Fill="#FF560000" Data="M 339.882,53.4904L 362.51,76.1178L 338.751,99.8768C 356.416,126.541 356.416,161.459 338.751,188.123L 362.51,211.882L 339.882,234.51L 316.123,210.751C 289.459,228.416 254.541,228.416 227.877,210.751L 204.118,234.51L 181.49,211.882L 205.249,188.123C 187.583,161.459 187.583,126.541 205.249,99.8767L 181.49,76.1178L 204.118,53.4904L 227.877,77.2494C 254.541,59.5836 289.459,59.5836 316.123,77.2494L 339.882,53.4904 Z M 294.627,144L 315.323,164.696C 321.559,151.644 321.559,136.357 315.323,123.304L 294.627,144 Z M 272,166.627L 251.304,187.324C 264.356,193.559 279.643,193.559 292.696,187.324L 272,166.627 Z M 249.373,144L 228.676,123.304C 222.441,136.357 222.441,151.644 228.676,164.696L 249.373,144 Z M 272,121.373L 292.696,100.677C 279.643,94.4413 264.356,94.4413 251.304,100.677L 272,121.373 Z " StrokeThickness="0" Height="24" Margin="5" Width="24" UseLayoutRounding="False"/>
							</Button>
						</StackPanel>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	-->
	<Style x:Key="TaskBarButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#BFFFFFFF"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid d:DesignWidth="60" d:DesignHeight="37">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00.1000000"/>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF5F5F5F"/>
										</ColorAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="Black"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="outerEdge" BorderThickness="1" BorderBrush="#7F000000" Margin="-1" d:LayoutOverrides="Height" CornerRadius="4"/>
						<Border x:Name="background" d:LayoutOverrides="Height" Margin="0" CornerRadius="4" BorderThickness="1">
							<Border.BorderBrush>
								<LinearGradientBrush EndPoint="0.536,0.983" StartPoint="0.464,0.017">
									<GradientStop Color="#7FFFFFFF" Offset="0"/>
									<GradientStop Color="#7FFFFFFF" Offset="1"/>
									<GradientStop Color="#33FFFFFF" Offset="0.5"/>
								</LinearGradientBrush>
							</Border.BorderBrush>
							<Border.Background>
								<RadialGradientBrush RadiusX="0.6" RadiusY="0.865">
									<GradientStop Color="#0CFFFFFF" Offset="1"/>
									<GradientStop Color="#54D7D7D7"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" d:LayoutOverrides="Height" Margin="0" Visibility="Collapsed">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957" RadiusX="0.56">
									<GradientStop Color="{StaticResource TheGameDarkBlue}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameLightBlue}" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#3FFFFFFF" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="#3FFFFFFF" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="glass" CornerRadius="4" Background="{StaticResource DefaultGlassGradient}" BorderThickness="1" Opacity="0.75"/>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Center" VerticalAlignment="Center" UseLayoutRounding="False" Margin="0,3"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
	</Style>


	<Style TargetType="local:TaskBarButton">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:TaskBarButton">
					<Grid x:Name="LayoutRoot" HorizontalAlignment="Left" VerticalAlignment="Top" Height="28">
						<VisualStateManager.CustomVisualStateManager>
							<ic:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="Default">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00"/>
									<VisualTransition To="Idle">
										<VisualTransition.GeneratedEasingFunction>
											<BounceEase EasingMode="EaseOut" Bounciness="3"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
									<VisualTransition From="Idle">
										<VisualTransition.GeneratedEasingFunction>
											<ElasticEase EasingMode="EaseOut"/>
										</VisualTransition.GeneratedEasingFunction>
									</VisualTransition>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Idle">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="grid" Storyboard.TargetProperty="(FrameworkElement.Width)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<System:Double>64</System:Double>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseDown"/>								
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>									
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Grid x:Name="grid">
							<Border x:Name="outerEdge" BorderThickness="1" BorderBrush="#7F000000" Margin="-1" d:LayoutOverrides="Height" CornerRadius="4" Background="#19808080"/>
							<Border x:Name="highlighter" d:LayoutOverrides="Height" Margin="0" IsHitTestVisible="False" Opacity="0">
								<Border.Effect>
									<DropShadowEffect BlurRadius="10" Color="#FF00B8FF" Direction="275" ShadowDepth="0"/>
								</Border.Effect>
								<Border.Background>
									<RadialGradientBrush RadiusY="0.957" RadiusX="0.56">
										<GradientStop Color="{StaticResource TheGameDarkBlue}" Offset="1"/>
										<GradientStop Color="{StaticResource TheGameLightBlue}" Offset="0.384"/>
									</RadialGradientBrush>
								</Border.Background>
								<Border.OpacityMask>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#3FFFFFFF" Offset="0.45"/>
										<GradientStop Color="White" Offset="1"/>
										<GradientStop Color="White"/>
										<GradientStop Color="#3FFFFFFF" Offset="0.55"/>
									</LinearGradientBrush>
								</Border.OpacityMask>
							</Border>
							<Border x:Name="background" d:LayoutOverrides="Height" Margin="0" CornerRadius="4" BorderThickness="1" IsHitTestVisible="False">
								<Border.Background>
									<RadialGradientBrush RadiusX="0.6" RadiusY="0.865">
										<GradientStop Color="#0CFFFFFF" Offset="1"/>
										<GradientStop Color="#54D7D7D7"/>
									</RadialGradientBrush>
								</Border.Background>
								<Border.BorderBrush>
									<LinearGradientBrush EndPoint="0.536,0.983" StartPoint="0.464,0.017">
										<GradientStop Color="White" Offset="0"/>
										<GradientStop Color="White" Offset="1"/>
										<GradientStop Color="#33FFFFFF" Offset="0.5"/>
									</LinearGradientBrush>
								</Border.BorderBrush>
							</Border>
							<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="Left" VerticalAlignment="Center" UseLayoutRounding="False" Margin="5,3" IsHitTestVisible="False" Opacity="0.75" Content="{TemplateBinding Content}"/>
							<Border x:Name="glass" CornerRadius="4" Background="{StaticResource DefaultGlassGradient}" Opacity="0.66" BorderThickness="1" IsHitTestVisible="False"/>
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Content" Value="Long description of window"/>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
		<Setter Property="Foreground" Value="#BFFFFFFF"/>
	</Style>

	<Style x:Key="StartMenuButtonStyle" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid d:DesignWidth="335" d:DesignHeight="37">
						<VisualStateManager.CustomVisualStateManager>
							<ic:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates" ic:ExtendedVisualStateManager.UseFluidLayout="True">
								<VisualStateGroup.Transitions>
									<VisualTransition GeneratedDuration="00:00:00"/>
								</VisualStateGroup.Transitions>
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FF303030"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="Gray"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="FocusVisualElement" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="Background" CornerRadius="0,3,3,0" Opacity="0">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF404040" Offset="1"/>
									<GradientStop Color="#FF606060"/>
								</LinearGradientBrush>

							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="1.003,0.5" StartPoint="-0.003,0.5">
									<GradientStop Offset="1"/>
									<GradientStop Color="White" Offset="0.5"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="10,3" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
						<Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" RadiusX="3" RadiusY="3" IsHitTestVisible="false" Opacity="0"/>
						<Rectangle x:Name="FocusVisualElement" Stroke="#FF6DBDD1" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="1" IsHitTestVisible="false" Opacity="0"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
	</Style>
	<Style x:Key="StartMenuExitButton" TargetType="Button">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Grid d:DesignWidth="91" d:DesignHeight="32">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.68"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="Red"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="highlighter" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFA01900"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusX)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.64"/>
										</DoubleAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="background" Storyboard.TargetProperty="(Border.Background).(RadialGradientBrush.RadiusY)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="0.922"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="outerEdge" CornerRadius="9,0,9,0" BorderThickness="2,2,0,0" d:LayoutOverrides="Height" Margin="0" BorderBrush="#3FFFFFFF">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.576" RadiusY="0.83">
									<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameBrightRed}"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="background" CornerRadius="8,0,8,0" BorderThickness="1,1,0,0" d:LayoutOverrides="Height" Margin="1,1,0,0" BorderBrush="#7F000000">
							<Border.Background>
								<RadialGradientBrush RadiusX="0.589" RadiusY="0.849">
									<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
									<GradientStop Color="#FFD92200"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
						<Border x:Name="highlighter" CornerRadius="8,0,8,0" d:LayoutOverrides="Height" Visibility="Collapsed" BorderThickness="2,2,0,0">
							<Border.Effect>
								<DropShadowEffect BlurRadius="10" Color="Red" Direction="275" ShadowDepth="0"/>
							</Border.Effect>
							<Border.Background>
								<RadialGradientBrush RadiusY="0.957">
									<GradientStop Color="{StaticResource TheGameBrightRed}" Offset="1"/>
									<GradientStop Color="{StaticResource TheGameHighlighterYellow}" Offset="0.384"/>
								</RadialGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Transparent" Offset="0.45"/>
									<GradientStop Color="White" Offset="1"/>
									<GradientStop Color="White"/>
									<GradientStop Color="Transparent" Offset="0.55"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="outerEdge_Copy" CornerRadius="7,0,7,0" BorderThickness="0,0,2,2" Margin="2,2,-1,-1" BorderBrush="Black" d:LayoutOverrides="Height">
							<Border.Effect>
								<BlurEffect Radius="3"/>
							</Border.Effect>
						</Border>
						<Border x:Name="glass" CornerRadius="7,0,7,0" BorderThickness="0.5,0.5,0,0" Margin="2,2,0,0" BorderBrush="#A8FFFFFF" Background="{StaticResource DefaultGlassGradient}" OpacityMask="Black"/>
						<TextBlock HorizontalAlignment="Center" Margin="2" VerticalAlignment="Center" Foreground="#BFFFFFFF" Text="LOG OFF" TextWrapping="Wrap" d:LayoutOverrides="Width, Height" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros" FontSize="8">
								<TextBlock.Effect>
									<DropShadowEffect BlurRadius="3" Color="White" ShadowDepth="0"/>
								</TextBlock.Effect>
						</TextBlock>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
	</Style>

	<Style TargetType="local:StartMenu">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StartMenu">
					<Grid Effect="{StaticResource BlackGlow}">
						<Border BorderThickness="0,1,1,1" CornerRadius="0,8,8,0" MinWidth="250" BorderBrush="#FF737373" d:LayoutOverrides="Width, Height">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="Black" Offset="0"/>
									<GradientStop Color="#FF525252" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
							<StackPanel>
								<TextBlock x:Name="txtGatewayAddress" HorizontalAlignment="Center" Margin="5,0,0,0" VerticalAlignment="Center" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros" FontSize="8" Foreground="#7FFFFFFF" Text="{TemplateBinding ClientIP}" TextWrapping="Wrap"/>
								<Border Background="#3FFFFFFF" CornerRadius="5" Margin="5,5,5,15" BorderBrush="Black" BorderThickness="0.5">
									<StackPanel Margin="5">
										<TextBlock FontSize="8" Foreground="#7FFFFFFF" Text="Gateway Features" TextWrapping="Wrap" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
										<ItemsControl x:Name="itmClientFeatures" Margin="3,0"/>
									</StackPanel>
								</Border>
								<Border Margin="5,3" Background="#3FFFFFFF" CornerRadius="5">
									<StackPanel x:Name="stkPrograms" VerticalAlignment="Top" Margin="5" d:LayoutOverrides="VerticalAlignment, Width">
										<TextBlock Text="Programs" TextWrapping="Wrap" FontSize="8" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros" Foreground="#7FFFFFFF"/>
										<ItemsControl x:Name="itmProgramGroups"/>
									</StackPanel>
								</Border>
								<Button x:Name="btnLogoff" Style="{StaticResource StartMenuExitButton}" Content="Button" HorizontalAlignment="Right" Height="32" Margin="0,16,0,0" Width="96" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
							</StackPanel>
						</Border>
						<Border x:Name="glass" CornerRadius="0,10,0,0" IsHitTestVisible="False">
							<Border.Background>
								<RadialGradientBrush RadiusX="1.988" RadiusY="1.029" Center="0.86,0.914" GradientOrigin="0.86,0.914">
									<GradientStop Color="#1EFFFFFF" Offset="0.77"/>
									<GradientStop Color="#BFFFFFFF" Offset="1"/>
									<GradientStop Color="Transparent" Offset="0.766"/>
								</RadialGradientBrush>
							</Border.Background>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="ClientIP" Value="192.168.142.103"/>
	</Style>
	<Style x:Key="StartMenuProgramGroupHeader" TargetType="ToggleButton">
		<Setter Property="Background" Value="#FF1F3B53"/>
		<Setter Property="Foreground" Value="#FF000000"/>
		<Setter Property="Padding" Value="3"/>
		<Setter Property="BorderThickness" Value="1"/>
		<Setter Property="BorderBrush">
			<Setter.Value>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<GradientStop Color="#FFA3AEB9" Offset="0"/>
					<GradientStop Color="#FF8399A9" Offset="0.375"/>
					<GradientStop Color="#FF718597" Offset="0.375"/>
					<GradientStop Color="#FF617584" Offset="1"/>
				</LinearGradientBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ToggleButton">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal"/>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="White"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="White"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="#FFB0B0B0"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimationUsingKeyFrames Storyboard.TargetName="DisabledVisualElement" Storyboard.TargetProperty="Opacity">
											<SplineDoubleKeyFrame KeyTime="0" Value=".55"/>
										</DoubleAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="CheckStates">
								<VisualState x:Name="Checked">
									<Storyboard>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background_Copy" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="White"/>
										</ColorAnimationUsingKeyFrames>
										<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background_Copy" Storyboard.TargetProperty="(UIElement.Opacity)">
											<EasingDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
										</DoubleAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background_Copy" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameLightBlue}"/>
										</ColorAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background_Copy" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="{StaticResource TheGameDarkBlue}"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unchecked"/>
							</VisualStateGroup>
							<VisualStateGroup x:Name="FocusStates">
								<VisualState x:Name="Focused"/>
								<VisualState x:Name="Unfocused"/>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border x:Name="Background" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3">
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="1,0.5" StartPoint="-0.008,0.5">
									<GradientStop Offset="0"/>
									<GradientStop Color="White" Offset="0.75"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#00B0B0B0" Offset="1"/>
									<GradientStop Color="Transparent"/>
								</LinearGradientBrush>

							</Border.Background>
						</Border>
						<Border x:Name="Background_Copy" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" Opacity="0" BorderBrush="#3FFFFFFF">
							<Border.OpacityMask>
								<LinearGradientBrush EndPoint="1,0.5" StartPoint="-0.008,0.5">
									<GradientStop Offset="0.073"/>
									<GradientStop Color="White" Offset="0.75"/>
								</LinearGradientBrush>
							</Border.OpacityMask>
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF4092FF" Offset="1"/>
									<GradientStop Color="#FF003479"/>
								</LinearGradientBrush>

							</Border.Background>
						</Border>
						<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
						<Rectangle x:Name="DisabledVisualElement" Fill="#FFFFFFFF" RadiusX="3" RadiusY="3" IsHitTestVisible="false" Opacity="0"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
	</Style>
	<Style TargetType="local:StartMenuProgramGroup">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StartMenuProgramGroup">
					<StackPanel d:DesignWidth="201" d:DesignHeight="75">
						<VisualStateManager.CustomVisualStateManager>
							<ic:ExtendedVisualStateManager/>
						</VisualStateManager.CustomVisualStateManager>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="Default">
								<VisualState x:Name="Closed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="stkPrograms" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="tbtnHeader" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="Black"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Open">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="stkPrograms" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="tbtnHeader" Storyboard.TargetProperty="(Control.Foreground).(SolidColorBrush.Color)">
											<EasingColorKeyFrame KeyTime="00:00:00" Value="White"/>
										</ColorAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<ToggleButton x:Name="tbtnHeader" Style="{StaticResource StartMenuProgramGroupHeader}" HorizontalContentAlignment="Left" Padding="10,3" Content="{TemplateBinding CategoryName}" Foreground="Black" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros" FontSize="8"/>
						<StackPanel x:Name="stkPrograms" Margin="0" Visibility="Collapsed" Background="#19FFFFFF">
							<ItemsControl x:Name="itmPrograms" Margin="10,0,0,0" ItemsSource="{TemplateBinding Items}"/>
						</StackPanel>
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="FontFamily" Value="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
		<Setter Property="FontSize" Value="8"/>
	</Style>

    <Style TargetType="local:StartMenuProgramGroupItem">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="local:StartMenuProgramGroupItem">
                    <Border Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            BorderThickness="{TemplateBinding BorderThickness}" d:DesignWidth="264" d:DesignHeight="34">
                    	<Button x:Name="btnItemButton" Content="{TemplateBinding ProgramName}" Style="{StaticResource StartMenuButtonStyle}" HorizontalContentAlignment="Left" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Gros"/>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
	<Style TargetType="local:TraceViewItem">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:TraceViewItem">
					<Border Background="{TemplateBinding Background}"
						BorderBrush="{TemplateBinding BorderBrush}"
						BorderThickness="{TemplateBinding BorderThickness}" d:DesignWidth="64" d:DesignHeight="16" VerticalAlignment="Top">
						<Grid>
							<ProgressBar x:Name="progress" Background="{StaticResource ButtonBackground}" Maximum="{TemplateBinding InitialTime}" Value="{TemplateBinding CurrentValue}" BorderBrush="White" BorderThickness="0.5">
								<ProgressBar.Style>
									<Style TargetType="ProgressBar">
										<Setter Property="Foreground" Value="#FF027DB8"/>
										<Setter Property="Background" Value="#FFD2D5D8"/>
										<Setter Property="BorderThickness" Value="1"/>
										<Setter Property="Maximum" Value="100"/>
										<Setter Property="IsTabStop" Value="False"/>
										<Setter Property="BorderBrush">
											<Setter.Value>
												<LinearGradientBrush EndPoint=".5,1" StartPoint=".5,0">
													<GradientStop Color="#FFAEB7BF" Offset="0"/>
													<GradientStop Color="#FF919EA7" Offset="0.35"/>
													<GradientStop Color="#FF7A8A99" Offset="0.35"/>
													<GradientStop Color="#FF647480" Offset="1"/>
												</LinearGradientBrush>
											</Setter.Value>
										</Setter>
										<Setter Property="Template">
											<Setter.Value>
												<ControlTemplate TargetType="ProgressBar">
													<Grid x:Name="Root">
														<VisualStateManager.VisualStateGroups>
															<VisualStateGroup x:Name="CommonStates">
																<VisualState x:Name="Determinate"/>
																<VisualState x:Name="Indeterminate">
																	<Storyboard RepeatBehavior="Forever">
																		<ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="IndeterminateRoot" Storyboard.TargetProperty="(UIElement.Visibility)">
																			<DiscreteObjectKeyFrame KeyTime="00:00:00">
																				<DiscreteObjectKeyFrame.Value>
																					<Visibility>Visible</Visibility>
																				</DiscreteObjectKeyFrame.Value>
																			</DiscreteObjectKeyFrame>
																		</ObjectAnimationUsingKeyFrames>
																		<ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="DeterminateRoot" Storyboard.TargetProperty="(UIElement.Visibility)">
																			<DiscreteObjectKeyFrame KeyTime="00:00:00">
																				<DiscreteObjectKeyFrame.Value>
																					<Visibility>Collapsed</Visibility>
																				</DiscreteObjectKeyFrame.Value>
																			</DiscreteObjectKeyFrame>
																		</ObjectAnimationUsingKeyFrames>
																		<DoubleAnimationUsingKeyFrames Storyboard.TargetName="IndeterminateGradientFill" Storyboard.TargetProperty="(Shape.Fill).(LinearGradientBrush.Transform).(TransformGroup.Children)[0].X">
																			<SplineDoubleKeyFrame KeyTime="0" Value="0"/>
																			<SplineDoubleKeyFrame KeyTime="00:00:.5" Value="20"/>
																		</DoubleAnimationUsingKeyFrames>
																	</Storyboard>
																</VisualState>
															</VisualStateGroup>
														</VisualStateManager.VisualStateGroups>
														<Border x:Name="ProgressBarTrack" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3"/>
														<Grid x:Name="ProgressBarRootGrid">
															<Rectangle x:Name="ProgressBarRootGradient" Stroke="#FFFFFFFF" StrokeThickness="0" RadiusX="1.5" RadiusY="1.5" Margin="{TemplateBinding BorderThickness}" Canvas.ZIndex="1" Fill="{StaticResource DefaultGlassGradient}" Opacity="0.75"/>
															<Grid x:Name="IndeterminateRoot" Visibility="Collapsed">
																<Rectangle x:Name="IndeterminateSolidFill" Fill="{TemplateBinding Foreground}" Stroke="#FF448DCA" StrokeThickness="0" RadiusX="2" RadiusY="2" Margin="{TemplateBinding BorderThickness}" Opacity="1" RenderTransformOrigin="0.5,0.5"/>
																<Rectangle x:Name="IndeterminateGradientFill" StrokeThickness="1" RadiusX="2" RadiusY="2" Margin="{TemplateBinding BorderThickness}" Opacity="0.7">
																	<Rectangle.Fill>
																		<LinearGradientBrush EndPoint="0,1" StartPoint="20,1" MappingMode="Absolute" SpreadMethod="Repeat">
																			<LinearGradientBrush.Transform>
																				<TransformGroup>
																					<TranslateTransform X="0"/>
																					<SkewTransform AngleX="-30"/>
																				</TransformGroup>
																			</LinearGradientBrush.Transform>
																			<GradientStop Color="#FFFFFFFF" Offset="0"/>
																			<GradientStop Color="#00FFFFFF" Offset=".25"/>
																			<GradientStop Color="#FFFFFFFF" Offset="0.85"/>
																		</LinearGradientBrush>
																	</Rectangle.Fill>
																</Rectangle>
															</Grid>
															<Grid x:Name="DeterminateRoot" Margin="1">
																<Rectangle x:Name="ProgressBarIndicator" StrokeThickness="0.5" RadiusX="1.5" RadiusY="1.5" HorizontalAlignment="Left">
																	<Rectangle.Fill>
																		<RadialGradientBrush RadiusY="0.812" GradientOrigin="0.5,0.945">
																			<GradientStop Color="{StaticResource TheGameDarkRed}" Offset="1"/>
																			<GradientStop Color="{StaticResource TheGameBrightRed}"/>
																		</RadialGradientBrush>
																	</Rectangle.Fill>
																</Rectangle>
															</Grid>
														</Grid>
													</Grid>
												</ControlTemplate>
											</Setter.Value>
										</Setter>
										<Setter Property="Value" Value="105"/>
									</Style>
								</ProgressBar.Style>
							</ProgressBar>
							<TextBlock x:Name="txtSeconds" Text="{TemplateBinding StatusText}" d:LayoutOverrides="Width, Height" FontSize="8" VerticalAlignment="Top" Margin="3,0,0,0" Foreground="White" FontFamily="/Waaahsabi.Controls.DWM;component/Fonts/Fonts.zip#Bavaria Regular" TextAlignment="Center" UseLayoutRounding="True"/>
						</Grid>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="InitialTime" Value="10000"/>
	</Style>
</ResourceDictionary>
